forum

home / developersection / forums / check if a streamreader can read another line

Check if a StreamReader can read another line

Anonymous User 2120 31-Jan-2014

I need to check if a line contains a string before I read it, I want to do this using a while loop something like this

    while(reader.ReadLine() != null)

    {

        array[i] = reader.ReadLine();

    }

This obviously doesen't work, so how can I do this selection?


c# c# 
Updated on 31-Jan-2014

I am a content writter !


Message
Can you answer this question?

Answer

1 Answers

Liked By